package com.tedu.demo7;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
//@Scope("singleton")//单例：默认就是单例
@Scope("prototype")//  多例：每次获取都会创建对象
public class DBConnect {
}
